<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div id="app"></div>
    <script src="js/vue.js"></script>
    <script>
      // 1. 模板 compile --> 渲染函数
      // 2. 渲染函数 --> vNode 
      var vm = new Vue({
          render:function(createElement){
            // console.log(createElement('div', ['hello vue']))
            return createElement('div', ['hello vue'])
          }
      }).$mount('#app')
      
      // console.log(Vue.compile(`<div>hello vue</div>`))
    </script>
</body>

</html>